Skip to content

set window focus fix #473

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed

Conversation

ashdo
Copy link

@ashdo ashdo commented Jan 29, 2019

Fixes #326.

Existing hook sets focus to some window, but it does not set the focus back to the last (previously selected) window, but to the previous window (previous in the list of windows in the session).

My commit fixes this without any deeper knowledge about the hook itself.

Unfortunately the hook tells "no last window" to me now.

@codecov-io
Copy link

codecov-io commented Jan 29, 2019

Codecov Report

Merging #473 into master will decrease coverage by 0.12%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #473      +/-   ##
==========================================
- Coverage   75.06%   74.93%   -0.13%     
==========================================
  Files           5        5              
  Lines         794      794              
  Branches      231      231              
==========================================
- Hits          596      595       -1     
  Misses        146      146              
- Partials       52       53       +1
Impacted Files Coverage Δ
tmuxp/cli.py 56.23% <100%> (ø) ⬆️
tmuxp/workspacebuilder.py 90.9% <0%> (-0.61%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 52762f3...3c76fcf. Read the comment docs.

@sluther
Copy link

sluther commented Apr 20, 2019

I can confirm that the above fix works for me. In addition, it seems that the Travis CI check failed due to network error.

@anselmos
Copy link

anselmos commented Nov 9, 2019

It has been fixed in #500 @sluther - you may close this PR :)

@tony
Copy link
Member

tony commented Nov 10, 2019

Thank you @anselmos

@ashdo : I'm closing this PR for now since #500 is live as of 1.5.4

If this persists please feel free to reopen

@tony tony closed this Nov 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Second window comes into focus first
5 participants